<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page import="net.tribal.comic.entities.User" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="user.edit" default="EDIT USER" /></title>
    </head>
    <body>
    	<div class="nav">
            <span class="menuButton"><g:link class="create" action="create"><g:message code="user.new" default="NEW USER" /></g:link></span>
        </div>
        
        <h1><g:message code="user.edit" default="EDIT USER" /></h1>
        
<g:uploadForm>
	<div class="roundedCorners wrapper dialog">
       	<table>
            <tbody>
                <tr class="prop">
                    <td  valign="top" class="name">
             			<label><g:message code="user.path" default="IMAGE PATH" />:</label></td>
               		<td  valign="top" class="value ${hasErrors(bean: userInstance, field: 'path', 'errors')}">
            			<input type="file" name="file"/>
 	          		</td>
				</tr>
			</tbody>
		</table>
		
        <div class="buttons">
            <span class="button"><g:actionSubmit class="save" action="updateFile" value="${message(code: 'update.file', 'default': 'UPDATE FILE')}" /></span>
    	</div>
	</div>
	
   	<g:hiddenField name="id" value="${userInstance?.id}" />
    <g:hiddenField name="version" value="${userInstance?.version}" />
</g:uploadForm>

</body>
</html>